<?php
/**
 * 
 * Copyright (c) 2012 Principe Orazio
 * http://www.dbpersister.com/
 *
 * Licensed under LGPL
 * http://www.opensource.org/licenses/lgpl-3.0.html
 *
 * Launch  : July 2012
 * Version : 1.0
 */

/**
 * DbMySqli_Settings is used to setup
 * variable to connect and use the database
 */
class DbMySqli_Settings extends mysqli
{
    /**
     * database host location
     * @var string 
     */
    public $host     = "localhost";
    
    /**
     * database username used to connect
     * @var string
     */
    public $user     = "root";
    
    /**
     * database password used to connect
     * @var string 
     */
    public $password = "";
    
    /**
     * database name used to operate
     * @var string 
     */
    public $database = "test";
    
    /**
     * database port used to connect
     * @var int
     */
    public $port     = 3306;
    
    /**
     * database socket path used to connect
     * @var string
     */
    public $socket   = null;
    

    public function connect() {
        parent::connect($this->host, $this->user, $this->password, $this->database, $this->port, $this->socket);
    }

    
}

?>